Skip to content

Instantly share code, notes, and snippets.

@zas
zas / sha256github_pubkey.sh
Created February 28, 2022 20:49
Calculate sha256 hash from a pub key to compare to github deploy key
#!/bin/bash
# calculate sha256 hash from a pub key to compare to github deploy key
KEY=$1
KEYPATH="~/.ssh/${KEY}.pub"
ssh-keygen -E sha256 -l -f "$KEYPATH"
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
@dementive
dementive / gd-cpp-module-compile-times.md
Last active October 31, 2026 12:33
Making incremental builds of Godot C++ modules as fast as possible

Making incremental builds of Godot C++ modules as fast as possible

I've been working on a project using C++ modules in Godot. At some point I was doing a lot of small incremental builds in a single file and they got to be slow, at around 10-15 seconds per recompile.

You're probably thinking "wow 10 seconds is actually really fast to compile c++", it certainly could be a lot worse. For me 10 seconds on this project was pretty inconvenient. I had to recompile very often to tweak small things such as how graphics look, ui adjustments, gameplay values, or other small algorithm changes. With graphics and UI in particular, unlike programming something that is pure math, there isn't really a point where you get it "correct" and the algorithm is completed. To make graphics "correct" requires tweaking it to make it "look good" and "feel good" which are totally arbitrary things that are difficult to get r

@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@PeiceOfToast
PeiceOfToast / arr-stack-guide.md
Created October 17, 2026 23:12
Automatic movies and TV with Jellyfin, start to finish: Prowlarr, NZBGet, Radarr, Sonarr and Seerr on Proxmox, wired to your Jellyfin library. Beginner ELI5 walkthrough with the full connection map, usenet provider and indexer recommendations, and every step done in the web UI. Follow up to the first home lab guide.

Building your automatic movie and TV library, wired into Jellyfin

What this is: the follow up to From spare computer to home lab. Part one got you Proxmox, TrueNAS, and Jellyfin, playing files you copied by hand. This guide adds a team of small apps that fill your library for you. You pick a movie or a show, and later it is sitting in Jellyfin with the right name, the right picture, and it just plays. You never touch a file.

Who this is for: someone who finished guide one, or already has Proxmox, a TrueNAS media share, and Jellyfin running. You do not need to know what any of the apps in this guide are. Every one of them gets introduced from zero.

Time: about two hours of mostly clicking, plus one evening signing up for two accounts on the internet side.

The one rule that matters most: every app in this guide will look at your media folder from the same spot, /mnt/media. When every app agrees on where the files ar

@PeiceOfToast
PeiceOfToast / home-lab-proxmox-truenas-guide.md
Created September 25, 2026 20:03
First home lab, start to finish: Proxmox VE + TrueNAS + media stack. Beginner walkthrough with every command explained (Sept 2026).

From spare computer to home lab: Proxmox + TrueNAS, start to finish

What this is: a build-it-yourself guide for turning one or two old computers into a proper home lab: virtual machines, containers, a shared storage box your whole house can use, and a full media library stack (Jellyfin, the download manager apps, and where the files come from), plus how to reach it from outside your house safely.

Who this is for: you have an old desktop or two, you can follow instructions, and you have never touched a hypervisor. No Linux experience assumed. Every command and every screen is explained, and each step tells you what you should see before you move on.

Time: about 1 hour for the first box (Proxmox), 45 minutes for the storage box (TrueNAS), plus however long your data takes to copy. Most of it is waiting.

The single most important thing in this guide: give every box a fixed IP address so it never moves. Everything else you can fix later by reading a screen. If a machine changes address,

@odzhan
odzhan / runscript.c
Last active October 31, 2026 12:28
In-memory execution of VBScript, JavaScript or JScript
/**
BSD 3-Clause License
Copyright (c) 2019, Odzhan. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

Executing commands across nested shells (e.g., SSH or Docker) often results in complex quoting issues. This snippet shows how to avoid this by wrapping each environment-specific command into a function. By doing so, you let the shell handle the nesting and escaping. Just make sure to invoke them properly (see declare) and explicitly expand necessary environment variables.

VAR1=dockername
VAR2=filename

inside_ssh() {
  inside_docker() {
    CMD1_RESULT=$(sed -nE 's/.*"version":"(\w+?)".*/\1/gp' /opt/*/frontend/*.js)
 CMD2_RESULT=$(cat /etc/version.d/$VAR2)
@bit0fun
bit0fun / FW13Pro_EQ.json
Created August 29, 2026 15:16
Framework 13 Pro H4n Frequency Response measured
{
"output": {
"blocklist": [],
"compressor#0": {
"attack": 20.0,
"boost-amount": 6.0,
"boost-threshold": -72.0,
"bypass": false,
"dry": -80.01,
"hpf-frequency": 10.0,